package com.zhiyou.app.service;

import com.github.pagehelper.PageInfo;
import com.zhiyou.app.pojo.entity.UserWalletEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhiyou.app.pojo.vo.UserWalletVo;
import com.zhiyou.app.pojo.vo.WithdrawalListQueryRequestVo;
import com.zhiyou.app.pojo.vo.WithdrawalListResponseVo;
import com.zhiyou.app.pojo.vo.WithdrawalResponseVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jonathan.z
 * @since 2025-07-03
 */
public interface IUserWalletService extends IService<UserWalletEntity> {
    WithdrawalResponseVo withdrawal(Integer amount);

    WithdrawalResponseVo reWithdrawal(Integer withdrawalId);

    void addAmount(Integer amount, Integer userId);

    UserWalletVo parseWalletVo(UserWalletEntity userWalletEntity);

    PageInfo<WithdrawalListResponseVo> queryWithdrawalList(WithdrawalListQueryRequestVo withdrawalListQueryRequestVo);

}
